﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="True" CodeBehind="ESS_MoneyRequest.aspx.cs" Inherits="KPIS.GERP.ESS.APP.App_UI.Forms.ESS_MoneyRequest" %>

<%@ Register Src="../Controls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <title>ขอเบิกเงิน/ยืมเงิน</title>

    <link href="../Styles/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../Scripts/Common.js" type="text/jscript"></script>
    <script language="JavaScript" src="../Scripts/DatePicker.js" type="text/jscript"></script>

    <style type="text/css">
        .auto-style1 {
            height: 20px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="PanelControl">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelControl" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelBody" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelProgress" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>

            <telerik:AjaxSetting AjaxControlID="PanelBody">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelBody" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>

            <telerik:AjaxSetting AjaxControlID="PanelProgress">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelProgress" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelBody" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="true"
        BackgroundPosition="none" CssClass="LoadingPanel">
        <div>
            <table>
                <tr>
                    <td style="color: #666666; font-size: medium; font-weight: bold;" align="right" valign="bottom">กรุณารอสักครู่...
                        <asp:Image ID="Image1" runat="server" ImageUrl="../Images/PageViews/loading.gif" />
                    </td>
                </tr>
            </table>
        </div>
    </telerik:RadAjaxLoadingPanel>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function CloseActiveToolTip() {
                var controller = Telerik.Web.UI.RadToolTipController.getInstance();
                var tooltip = controller.get_activeToolTip();
                if (tooltip) tooltip.hide();

            }

            function UpdateItemCountField(sender, args) {
                //set the footer text
                sender.get_dropDownElement().lastChild.innerHTML = "ทั้งหมด " + sender.get_items().get_count() + " รายการ";
            }

            // trigger dtpBorrow
            var dpBorrowStartDateValue = "";
            var dpBorrowEndDateValue = "";

        </script>
    </telerik:RadCodeBlock>

    <span id="lblTest"></span>
    <table width="1000px" cellpadding="0" cellspacing="0" class="AllBorder">
        <tr>
            <td width="150px">
                <asp:Panel ID="PanelPage" runat="server" CssClass="PanelPage">
                    <asp:Label ID="lblPage" runat="server" Text="ขอเบิกเงิน/ยืมเงิน" CssClass="LabelMode" />
                </asp:Panel>
            </td>
            <td>
                <asp:Panel ID="PanelControl" runat="server" CssClass="PanelControl">
                    <div class="DivControl">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="120px" class="controls">
                                    <asp:Label ID="lblMode" runat="server" Visible="false" />
                                    <asp:Label ID="lblModeName" runat="server" CssClass="LabelMode" />
                                </td>
                                <td>
                                    <asp:LinkButton ID="cmdAddNew1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdAddNew1_Click">
                                        <img alt="" id="imgAddNew" runat="server" height="14" src="~/App_UI/Images/Buttons/AddRecord.gif" />
                                        เพิ่มข้อมูลใหม่
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdInsert1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdInsert1_Click" OnClientClick="javascript: return confirm('ต้องการบันทึกรายการนี้หรือไม่?');">
                                        <img alt="" id="imgInsert" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" />
                                        บันทึกข้อมูล
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdUpdate1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdUpdate1_Click" OnClientClick="javascript: return confirm('ต้องการบันทึกรายการนี้หรือไม่?');">
                                        <img alt="" id="imgUpdate" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" />
                                        บันทึกข้อมูล
                                    </asp:LinkButton>
                                    <%--</td>
                                <td>--%>
                                    <asp:LinkButton ID="cmdEdit1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdEdit1_Click">
                                        <img alt="" id="imgEdit" runat="server" height="14" src="~/App_UI/Images/Buttons/Edit.gif" />
                                        แก้ไขข้อมูล
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdCancel" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdCancel_Click">
                                        <img alt="" id="img2" runat="server" height="14" src="~/App_UI/Images/Buttons/Cancel.gif" />
                                        ยกเลิกการแก้ไข
                                    </asp:LinkButton>
                                    <%--</td>
                                <td>--%>
                                    <asp:LinkButton ID="cmdDelete1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdDelete1_Click"
                                        OnClientClick="javascript: return confirm('ต้องการลบรายการนี้หรือไม่?');">
                                        <img alt="" id="imgDelete" runat="server" height="14" src="~/App_UI/Images/Buttons/Delete.gif" />
                                        ลบรายการที่เลือก
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdCancelMessage" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdCancelMessage_Click"
                                        OnClientClick="javascript: return confirm('ต้องกายกเลิกการส่งให้ผู้บังคับบัญชาพิจารณาหรือไม่?');">
                                        <img alt="" id="img7" runat="server" height="14" src="~/App_UI/Images/Buttons/Back.png" />
                                        ยกเลิกการส่งให้ผู้บังคับบัญชาพิจารณา
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdSendMessage1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdSendMessage1_Click">
                                        <img alt="" id="img4" runat="server" height="14" src="~/App_UI/Images/Buttons/Send.gif" />ส่งให้ผู้บังคับบัญชาพิจารณา
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdReportMoneyReqContracts" runat="server" CssClass="LinkButtonControlWhite" OnClientClick="aspnetForm.target ='_blank';" OnClick="cmdReportMoneyReqContracts_Click">
                                        <img alt="" id="imgReportMoneyReqContracts" runat="server" src="~/App_UI/Images/Buttons/Print1.gif" height="20" />แบบฟอร์มยืมเงิน
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="cmdReportMoneyReq1" runat="server" CssClass="LinkButtonControlWhite" OnClick="cmdReportMoneyReq1_Click">
                                        <img alt="" id="imgReportMoneyReq1" runat="server" src="~/App_UI/Images/Buttons/Print1.gif" height="20" />แบบฟอร์มเบิกเงิน
                                    </asp:LinkButton>
                                    <asp:LinkButton ID="lbtnContBorr" runat="server" CssClass="LinkButtonControlWhite" OnClick="lbtnContBorr_Click" OnClientClick="aspnetForm.target ='_blank';">
                                        <img alt="" id="img1" runat="server" src="~/App_UI/Images/Buttons/Print1.gif" height="20" />สัญญายืมเงิน
                                    </asp:LinkButton>

                                    <%--<asp:LinkButton ID="cmdInsertMuti" runat="server" CssClass="LinkButtonControlWhite" onclick="cmdInsertMuti_Click" OnClientClick="javascript: return confirm('ต้องการบันทึกรายการนี้หรือไม่?');">
                                        <img alt="" id="imgInsertMuti" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" /> บันทึกข้อมูล
                                    </asp:LinkButton>--%>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td width="150px" valign="top">
                <asp:Panel ID="PanelProgress" runat="server" CssClass="PanelProgress">
                    <div class="DivProgress">
                        <ul class="ProgressList">
                            <li id="li1" runat="server">
                                <table>
                                    <tr>
                                        <td width="16px" align="center">
                                            <asp:Image ID="imgComplete1" runat="server" ImageUrl="~/App_UI/Images/Buttons/Update.gif" />
                                            <asp:Image ID="imgInComplete1" runat="server" ImageUrl="~/App_UI/Images/Buttons/Cancel.gif" />
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="cmdProgress1" runat="server" CssClass="LinkButton" OnClick="cmdProgress1_Click">ข้อมูลขอเบิก/ยืมเงิน</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li id="li3" runat="server">
                                <table>
                                    <tr>
                                        <td width="16px" align="center">
                                            <asp:Image ID="imgComplete3" runat="server" ImageUrl="~/App_UI/Images/Buttons/Update.gif" />
                                            <asp:Image ID="imgInComplete3" runat="server" ImageUrl="~/App_UI/Images/Buttons/Cancel.gif" />
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="cmdProgress3" runat="server" CssClass="LinkButton" OnClick="cmdProgress3_Click">ข้อมูลผู้เดินทาง</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li id="li2" runat="server">
                                <table>
                                    <tr>
                                        <td width="16px" align="center">
                                            <asp:Image ID="imgComplete2" runat="server" ImageUrl="~/App_UI/Images/Buttons/Update.gif" />
                                            <asp:Image ID="imgInComplete2" runat="server" ImageUrl="~/App_UI/Images/Buttons/Cancel.gif" />
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="cmdProgress2" runat="server" CssClass="LinkButton" OnClick="cmdProgress2_Click">ข้อมูลค่าใช้จ่าย</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                    </div>
                    <div class="DivProgress">
                        <ul class="ProgressList">
                            <li id="liSummary" runat="server">
                                <table>
                                    <tr>
                                        <td width="16px"></td>
                                        <td>
                                            <asp:LinkButton ID="cmdSummary" runat="server" CssClass="LinkButton" OnClick="cmdSummary_Click">สรุปรายการ</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                            <li id="liViewAll" runat="server">
                                <table>
                                    <tr>
                                        <td width="16px"></td>
                                        <td>
                                            <asp:LinkButton ID="cmdViewAll" runat="server" CssClass="LinkButton" OnClick="cmdViewAll_Click">แสดงทั้งหมด</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                    </div>
                    <%--<div class="DivProgress">
                        <ul class="ProgressList" >
                            <li id="liMuti" runat="server">
                                <table>
                                    <tr>
                                        <td width="16px">
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="cmdMuti" runat="server" CssClass="LinkButton" onclick="cmdMuti_Click">ข้อมูลขอเบิกหลายรายการ</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                        </ul>
                    </div>--%>
                </asp:Panel>

                <%--Edit by Raksakaew on Feb 25,2014--%>
                <%--<div class="DivProgress">
                    <table>
                        <tr>
                            <td width="16px">

                            </td>
                            <td>
                                รายงาน :
                            </td>
                        </tr>
                        <tr>
                            <td width="16px">
                            </td>
                            <td>
                                <asp:LinkButton ID="cmdExportToMsWord" runat="server" CssClass="LinkButton" OnClick="cmdExportToMsWord_Click"> <img id="Img1" alt="" runat="server" src="../Images/Buttons/MSWord2010Icons.png" height="20" />Export to Word </asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td width="16px" class="auto-style1">
                            </td>
                            <td class="auto-style1">
                                <asp:LinkButton ID="cmdReportMoneyReqContracts" runat="server" CssClass="LinkButton" OnClick="cmdReportMoneyReqContracts_Click"> <img alt="" id="imgReportMoneyReqContracts" runat="server" src="~/App_UI/Images/Buttons/Print1.gif" height="20" />สัญญายืมเงิน </asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td width="16px">
                            </td>
                            <td>                                
                                <asp:LinkButton ID="cmdReportMoneyReq1" runat="server" CssClass="LinkButton" OnClick="cmdReportMoneyReq1_Click"> <img alt="" id="imgReportMoneyReq1" runat="server" src="~/App_UI/Images/Buttons/Print1.gif" height="20" />เบิกค่าตอบแทน </asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </div>--%>

            </td>
            <td>
                <%--    Height='<%# Unit.Pixel(KPIS.GERP.ESS.APP.App_UI.Forms.SsMng.HeightI - 200) %>' --%>
                <asp:Panel ID="PanelBody" runat="server" CssClass="PanelBody" ScrollBars="Auto">
                    <asp:Panel ID="PanelProgress1" runat="server">
                        <div class="DivInfo">
                            <table>
                                <tr>
                                    <td width="150px" align="right">หน่วยงานที่สังกัด :
                                    </td>
                                    <td width="250px">
                                        <asp:Label ID="lblMoneyReqSeq" runat="server" Visible="False" />
                                        <asp:Label ID="lblRecordStatus" runat="server" Visible="false" />
                                        <asp:Label ID="lblWorkingJobSiteSeq" runat="server" Visible="false" />
                                        <asp:Label ID="lblWorkAreaSeq" runat="server" Visible="false" />

                                        <asp:Label ID="lblWorkingJobSiteName" runat="server" ForeColor="Blue" />
                                    </td>
                                    <td width="100px" align="right">วันที่ทำรายการ :
                                    </td>
                                    <td>
                                        <uc1:DatePicker ID="txtMoneyReqDate" runat="server" />
                                        <asp:Label ID="lblMoneyReqDate" runat="server" ForeColor="Blue" />
                                    </td>
                                </tr>
                            </table>
                            <table width="100%">
                                <tr>
                                    <td width="150px" align="right"></td>
                                    <td align="left">
                                        <asp:RadioButtonList ID="rblEventSeq" runat="server"
                                            RepeatDirection="Horizontal" AutoPostBack="true"
                                            OnSelectedIndexChanged="rblEventSeq_SelectedIndexChanged">
                                            <asp:ListItem Text="ขอยืมเงิน" Value="16" Selected="True">
                                            </asp:ListItem>
                                            <asp:ListItem Text="ขอเบิกเงิน" Value="12">
                                            </asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="DivBody">
                            <table>
                                <tr>
                                    <td width="150px" align="right">ปีงบประมาณ :
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtBgmYear" runat="server"
                                            Width="100px" ShowSpinButtons="True" AutoPostBack="true"
                                            NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator=""
                                            OnTextChanged="txtBgmYear_TextChanged" />
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td width="150px" align="right">แหล่งเงิน :
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="ddlBgmSourceSeq" runat="server"
                                            DataTextField="bgm_source_name" DataValueField="bgm_source_seq"
                                            AutoPostBack="true"
                                            OnSelectedIndexChanged="ddlBgmSourceSeq_SelectedIndexChanged">
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td width="150px" align="right">รหัสรายการ :
                                    </td>
                                    <td>
                                        <asp:Label ID="lblRefNo" runat="server" ForeColor="Blue" />
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td width="150px" align="right">อนุมัติดำเนินงาน :
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="ddlBgmProjOperSeq" runat="server"
                                            DataTextField="bgm_proj_oper_name" DataValueField="bgm_proj_oper_seq"
                                            Filter="Contains" Width="600px" AutoPostBack="true"
                                            OnSelectedIndexChanged="ddlBgmProjOperSeq_SelectedIndexChanged">
                                        </telerik:RadComboBox>
                                        <span class="span">&nbsp;*</span>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td align="right" width="150px" valign="top" class="valignTop">ชื่อรายการ :
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtMoneyReqName" runat="server"
                                            Width="600px" Height="50px" TextMode="MultiLine" />
                                        <span class="span">&nbsp;*</span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="DivInfo">
                            <asp:Label ID="lblEventName" runat="server" Font-Bold="true" />
                        </div>
                        <div class="DivBody">
                            <asp:Panel ID="PanelBorrow" runat="server">
                                <asp:Panel ID="PanelCreditCardNo" runat="server" Visible="false">
                                    <table>
                                        <tr>
                                            <td width="150px" align="right">เลขที่บัตรเครดิต :
                                            </td>
                                            <td colspan="3">
                                                <telerik:RadTextBox ID="txtCreditCardNo" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <table>
                                    <tr>
                                        <td width="150px" align="right">วัตถุประสงค์ในการยืม :
                                        </td>
                                        <td colspan="3">
                                            <asp:RadioButtonList ID="rblBorrowTypeSeq" runat="server"
                                                DataTextField="borrow_type_name" DataValueField="borrow_type_seq"
                                                RepeatDirection="Horizontal" AutoPostBack="True"
                                                OnSelectedIndexChanged="rblBorrowTypeSeq_SelectedIndexChanged">
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td width="150px" align="right">วันที่เริ่ม :
                                        </td>
                                        <td>
                                            <uc1:DatePicker ID="dpBorrowStartDate" runat="server" TextBoxCustomClientChange="DpBorrowDateChange(this)" />
                                        </td>
                                        <td width="10px">
                                            <span class="span">&nbsp;*</span>
                                        </td>
                                        <td width="100px" align="right">วันที่สิ้นสุด :
                                        </td>
                                        <td>
                                            <uc1:DatePicker ID="dpBorrowEndDate" runat="server" TextBoxCustomClientChange="DpBorrowDateChange(this)" />
                                        </td>
                                        <td>
                                            <span class="span">&nbsp;*</span>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="right" width="150px">วันที่ครบกำหนดชดใช้ :
                                        </td>
                                        <td>
                                            <asp:Label ID="lblBorrowReturnDate" runat="server" ForeColor="Red" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="PanelRequest" runat="server">
                                <table>
                                    <tr>
                                        <td align="right" width="150px">เลขที่ใบสำคัญ :
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="txtDocRefNo" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" width="150px">ภาษีมูลค่าเพิ่ม :
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="optListInvoice" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Value="0">ยังไม่ชำระเงิน</asp:ListItem>
                                                <asp:ListItem Value="1">ชำระเงินแล้ว</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="right" width="150px">เบิกให้กับ :
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="rblPayeeType" runat="server" RepeatDirection="Horizontal"
                                                AutoPostBack="true"
                                                OnSelectedIndexChanged="rblPayeeType_SelectedIndexChanged">
                                                <asp:ListItem Text="ตนเอง" Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="บุคคลภายนอก" Value="2"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="PanelContact" runat="server" Visible="false">
                                    <table>
                                        <tr>
                                            <td align="right" width="150px">ชื่อบุคคลภายนอก :
                                            </td>
                                            <td>
                                                <telerik:RadComboBox ID="ddlContactSeq" runat="server"
                                                    DataTextField="contact_name" DataValueField="contact_seq"
                                                    Filter="Contains" Width="500px">
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </asp:Panel>
                            <asp:Panel ID="PanelTransfer" runat="server">
                                <table>
                                    <tr>
                                        <td align="right" width="150px">โอนเงินให้สำนักงาน :
                                        </td>
                                        <td>
                                            <telerik:RadComboBox ID="ddlJobSiteSeq" runat="server"
                                                DataTextField="job_site_name" DataValueField="job_site_seq"
                                                Filter="Contains" Width="600px" />
                                        </td>
                                        <td>
                                            <span class="span">&nbsp;*</span>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td width="150px" align="right">วัตถุประสงค์ในการโอน :
                                        </td>
                                        <td colspan="3">
                                            <asp:RadioButtonList ID="rblTransferTypeSeq" runat="server"
                                                RepeatDirection="Horizontal" AutoPostBack="true"
                                                OnSelectedIndexChanged="rblTransferTypeSeq_SelectedIndexChanged">
                                                <asp:ListItem Text="ค่าใช้จ่ายสำนักงาน" Value="1" Selected="True" />
                                                <asp:ListItem Text="ค่าใช้จ่ายในโครงการ" Value="2" />
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td width="150px" align="right">วันที่เริ่ม :
                                        </td>
                                        <td>
                                            <uc1:DatePicker ID="dpBorrowStartDate2" runat="server" />
                                        </td>
                                        <td>
                                            <span class="span">&nbsp;*</span>
                                        </td>
                                        <td width="100px" align="right">วันที่สิ้นสุด :
                                        </td>
                                        <td>
                                            <uc1:DatePicker ID="dpBorrowEndDate2" runat="server" />
                                        </td>
                                        <td>
                                            <span class="span">&nbsp;*</span>
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="right" width="150px">วันที่ครบกำหนดชดใช้ :
                                        </td>
                                        <td>
                                            <asp:Label ID="lblBorrowReturnDate2" runat="server" ForeColor="Red" Text="-" />
                                        </td>
                                    </tr>
                                </table>

                            </asp:Panel>
                        </div>
                    </asp:Panel>
                    <asp:Panel ID="PanelProgress2" runat="server">
                        <div class="DivInfo">
                            <table>
                                <tr>
                                    <td>ค่าใช้จ่ายของรายการ
                                    </td>
                                    <td>
                                        <asp:Label ID="lblMoneyReqName" runat="server" ForeColor="Blue" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="DivBody">
                            <table>
                                <tr>
                                    <td width="150px" align="right">งบรายจ่าย :
                                    </td>
                                    <td>
                                        <asp:RadioButtonList ID="rblBgmExpGrpSeq" runat="server" RepeatDirection="Horizontal"
                                            DataTextField="bgm_exp_grp_name" DataValueField="bgm_exp_grp_seq"
                                            AutoPostBack="true" OnSelectedIndexChanged="rblBgmExpGrpSeq_SelectedIndexChanged">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <%-- Prevent to fix height by session because session is not stable
                             Height='<%# Unit.Pixel(KPIS.GERP.ESS.APP.App_UI.Forms.SsMng.HeightI - 300) %>' --%>
                        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="grdMoneyRequestDtls" runat="server" AutoGenerateColumns="false"
                            AllowMultiRowEdit="false" AllowMultiRowSelection="false" AllowFilteringByColumn="true"
                            Width="846px"
                            AllowPaging="false" ShowFooter="false"
                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                            GroupingSettings-GroupContinuedFormatString=""
                            GroupingSettings-GroupContinuesFormatString=""
                            GroupingSettings-GroupSplitFormat=""
                            OnItemCommand="grdMoneyRequestDtls_ItemCommand"
                            OnItemDataBound="grdMoneyRequestDtls_ItemDataBound">
                            <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" GroupLoadMode="Client" Width="100%"
                                DataKeyNames="m_bgm_projectoperationexpense.bgm_proj_oper_exp_seq" NoMasterRecordsText="< ไม่มีข้อมูล >" GroupsDefaultExpanded="true">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.bgm_proj_oper_exp_seq"
                                        UniqueName="m_bgm_projectoperationexpense.bgm_proj_oper_exp_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.bgm_proj_oper_seq"
                                        UniqueName="m_bgm_projectoperationexpense.bgm_proj_oper_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.m_bgm_mas_expense_upper.bgm_exp_name"
                                        UniqueName="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.m_bgm_mas_expense_upper.bgm_exp_name"
                                        HeaderText="รายการค่าใช้จ่าย" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.m_bgm_mas_expense_upper.m_bgm_mas_expense_upper.bgm_exp_name"
                                        UniqueName="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.m_bgm_mas_expense_upper.m_bgm_mas_expense_upper.bgm_exp_name"
                                        HeaderText="หมวดค่าใช้จ่าย" Visible="false">
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.m_bgm_projectexpense.bgm_exp_seq"
                                        UniqueName="m_bgm_projectoperationexpense.m_bgm_projectexpense.bgm_exp_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="money_req_dtls_seq"
                                        UniqueName="money_req_dtls_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="money_req_seq"
                                        UniqueName="money_req_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="percent_vat"
                                        UniqueName="percent_vat" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="percent_tax"
                                        UniqueName="percent_tax" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="amount_vat"
                                        UniqueName="amount_vat" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="amount_tax"
                                        UniqueName="amount_tax" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.exp_rate_count"
                                        UniqueName="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.exp_rate_count" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.class_count"
                                        UniqueName="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.class_count" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="exp_rate_count"
                                        UniqueName="exp_rate_count" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.icm_res_item_seq"
                                        UniqueName="m_bgm_projectoperationexpense.icm_res_item_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="unit_price"
                                        UniqueName="unit_price" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="unit_qty"
                                        UniqueName="unit_qty" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.unit_price"
                                        UniqueName="m_bgm_projectoperationexpense.unit_price" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.unit_qty"
                                        UniqueName="m_bgm_projectoperationexpense.unit_qty" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ConId"
                                        UniqueName="ConId" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="branch_no"
                                        UniqueName="branch_no" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ref_no"
                                        UniqueName="ref_no" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ref_date" DataFormatString="{0:d}"
                                        UniqueName="ref_date" Visible="False">
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_name" HeaderText="ค่าใช้จ่าย"
                                        UniqueName="m_bgm_projectoperationexpense.m_bgm_projectexpense.m_bgm_mas_expense.bgm_exp_name"
                                        FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False" ItemStyle-HorizontalAlign="Left">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="remarks" HeaderText="หมายเหตุ"
                                        UniqueName="remarks"
                                        FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False" ItemStyle-HorizontalAlign="Left">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="m_bgm_projectoperationexpense.remain_amount" HeaderText="คงเหลือ(บาท)"
                                        UniqueName="m_bgm_projectoperationexpense.remain_amount" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False"
                                        DataFormatString="{0:n2}" ItemStyle-HorizontalAlign="Right">
                                        <HeaderStyle Width="110px" />
                                        <ItemStyle HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>

                                    <telerik:GridBoundColumn DataField="amount" HeaderText="จำนวนเงินที่ขอ"
                                        UniqueName="amount" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False" AllowFiltering="false"
                                        DataFormatString="{0:n2}">
                                        <HeaderStyle Width="110px" HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn UniqueName="button" AllowFiltering="false">
                                        <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="cmdAddExpense" runat="server" CssClass="LinkButton" CommandName="AddExpense">
                                                    <img alt="" src="../Images/Buttons/Edit.gif" />
                                            </asp:LinkButton>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                            <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                GroupContinuedFormatString="" GroupContinuesFormatString=""
                                GroupSplitFormat="" />
                            <ClientSettings EnableRowHoverStyle="true">
                                <Selecting AllowRowSelect="false" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
                        </telerik:RadGrid>
                        <asp:Panel ID="PanelOpacity" runat="server" Visible="false" CssClass="Opacity">
                        </asp:Panel>
                        <asp:Panel ID="PanelProjOperExp" runat="server" CssClass="PanelAbsoluteEdit" Visible="false">
                            <div class="DivPopupHeader">
                                <table>
                                    <tr>
                                        <td>บันทึกจำนวนเงิน
                                        </td>
                                        <td>
                                            <asp:Label ID="lblBgmExpName" runat="server" ForeColor="Blue" />
                                            <asp:Label ID="lblMoneyReqDtlsSeq" runat="server" Visible="false" />
                                            <asp:Label ID="lblBgmProjOperExpSeq" runat="server" Visible="false" />
                                            <asp:Label ID="lblBgmExpSeq" runat="server" Visible="false" />
                                            <asp:Label ID="lblBgmExpGrpSeq" runat="server" Visible="false" />
                                            <asp:Label ID="lblBgmSourceSeq" runat="server" Visible="false" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <asp:Panel ID="PanelExpRate" runat="server">
                                <div style="padding: 5px 5px 10px 5px; border: 1px solid #999999; background-color: #D9D9FF">
                                    <asp:Repeater ID="RepeaterExpRate" runat="server" OnItemDataBound="RepeaterExpRate_ItemDataBound">
                                        <HeaderTemplate>
                                            <div style="border-bottom-style: solid; border-width: 1px; border-color: #999999; padding-bottom: 5px; margin-bottom: 10px;">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <span class="FinHeader">อัตราค่าใช้จ่าย</span>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <div style="border-bottom-style: dotted; border-width: 1px; border-color: #999999;">
                                                <table>
                                                    <tr valign="top">
                                                        <td width="200px" rowspan="2">
                                                            <asp:Label ID="lblExpRateName" runat="server" Text='<%# Eval("exp_rate_name")%>' />
                                                            <asp:Label ID="lblExpRateSeq" runat="server" Visible="false"
                                                                Text='<%# Eval("exp_rate_seq")%>' />
                                                            <asp:Label ID="lblMoneyReqDtlsRateSeq" runat="server" Visible="false"
                                                                Text='<%# Eval("money_req_dtls_rate_seq")%>' />
                                                            <asp:Label ID="lblExpRateDescr" runat="server" Visible="false"
                                                                Text='<%# Eval("exp_rate_descr")%>' />
                                                            <asp:Label ID="lblRelateMan" runat="server" Visible="false"
                                                                Text='<%# Eval("relate_man")%>' />
                                                            <asp:Label ID="lblRelateDay" runat="server" Visible="false"
                                                                Text='<%# Eval("relate_day")%>' />
                                                        </td>
                                                        <td width="100px">
                                                            <input id="hAmountMin" runat="server" type="hidden" value='<%# Eval("amount_min")%>' />
                                                            <input id="hAmountMax" runat="server" type="hidden" value='<%# Eval("amount_max")%>' />
                                                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" Width="100px" CssClass="NumericTextBox"
                                                                Text='<%# Eval("amount")%>' AutoPostBack="True" OnTextChanged="txtAmount_TextChanged">
                                                            </telerik:RadNumericTextBox>
                                                        </td>
                                                        <td width="250px">&nbsp;ต่อ&nbsp;
                                                            <telerik:RadNumericTextBox ID="txtMan" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                Text='<%# Eval("man")%>' AutoPostBack="True" OnTextChanged="txtMan_TextChanged">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblMan" runat="server" Text=" คน" Visible="false" />
                                                            <telerik:RadNumericTextBox ID="txtDay" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                Text='<%# Eval("day")%>' AutoPostBack="True" OnTextChanged="txtDay_TextChanged">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblDay" runat="server" Text=" วัน" Visible="false" />
                                                            <telerik:RadNumericTextBox ID="txtHour" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                Text='<%# Eval("hour")%>' AutoPostBack="True" OnTextChanged="txtHour_TextChanged">
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblHour" runat="server" Text=" ชั่วโมง" Visible="false" />
                                                            <telerik:RadNumericTextBox ID="txtMinute" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                Text='<%# Eval("minute")%>' AutoPostBack="True" OnTextChanged="txtMinute_TextChanged">
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblMinute" runat="server" Text=" นาที" Visible="false" />
                                                        </td>
                                                        <td>=
                                                        </td>
                                                        <td width="110px" align="right">
                                                            <asp:Label ID="lblTotalAmount" runat="server" ForeColor="Blue" Text='<%# Eval("total_amount", "{0:n2}")%>' />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="110px" align="right">
                                                            <asp:LinkButton ID="cmdAmountMax" runat="server" CssClass="LinkButton" OnClick="cmdAmountMax_Click"
                                                                ToolTip="คลิก เพื่อใช้จำนวนเงินตามอัตราสูงสุด">
                                                                ไม่เกิน <%# Eval("amount_max", "{0:n2}")%>
                                                            </asp:LinkButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                                <br />
                                <asp:CheckBox ID="chkManual" runat="server" Text="ใช้ค่าใช้จ่ายนอกเหนือจากที่กำหนดไว้ (ต้องกรอกข้อมูลรายละเอียดด้วย)"
                                    AutoPostBack="true" OnCheckedChanged="chkManual_CheckedChanged" />
                            </asp:Panel>
                            <asp:Panel ID="PanelExpRateEmp" runat="server">
                                <div style="padding: 5px 5px 10px 5px; border: 1px solid #999999; background-color: #D9D9FF">
                                    <asp:Repeater ID="RepeaterExpRateEmp" runat="server" OnItemDataBound="RepeaterExpRateEmp_ItemDataBound">
                                        <HeaderTemplate>
                                            <div style="border-bottom-style: solid; border-width: 1px; border-color: #999999; padding-bottom: 5px; margin-bottom: 10px;">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <span class="FinHeader">อัตราค่าใช้จ่าย</span>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <div style="border-bottom-style: dotted; border-width: 1px; border-color: #999999;">
                                                <table>
                                                    <tr valign="top">
                                                        <td width="250px" rowspan="2">
                                                            <asp:Label ID="lblEmpName" runat="server" Text='<%# Eval("emp_name")%>' />
                                                            <asp:Label ID="lblEmpSeq2" runat="server" Text='<%# Eval("emp_seq")%>' Visible="false" />
                                                            <asp:Label ID="lblClassSeq" runat="server" Text='<%# Eval("class_seq")%>' Visible="false" />
                                                        </td>
                                                        <td width="150px" rowspan="2">
                                                            <asp:Label ID="lblMoneyReqDtlsRateSeq" runat="server" Visible="false" />
                                                            <telerik:RadComboBox ID="ddlExpRateSeq" runat="server"
                                                                DataTextField="exp_rate_name" DataValueField="exp_rate_seq"
                                                                AutoPostBack="True" OnSelectedIndexChanged="ddlExpRateSeq_SelectedIndexChanged" />
                                                        </td>
                                                        <td width="100px">
                                                            <input id="hAmountMin" runat="server" type="hidden" />
                                                            <input id="hAmountMax" runat="server" type="hidden" />
                                                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" Width="100px" CssClass="NumericTextBox"
                                                                AutoPostBack="True" OnTextChanged="txtAmount_TextChanged">
                                                            </telerik:RadNumericTextBox>
                                                        </td>
                                                        <td width="250px">&nbsp;ต่อ&nbsp;
                                                            <telerik:RadNumericTextBox ID="txtMan" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                AutoPostBack="True" OnTextChanged="txtMan_TextChanged">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblMan" runat="server" Text=" คน" Visible="false" />
                                                            <telerik:RadNumericTextBox ID="txtDay" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                AutoPostBack="True" OnTextChanged="txtDay_TextChanged">
                                                                <NumberFormat DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblDay" runat="server" Text=" วัน" Visible="false" />
                                                            <telerik:RadNumericTextBox ID="txtHour" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                AutoPostBack="True" OnTextChanged="txtHour_TextChanged">
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblHour" runat="server" Text=" ชั่วโมง" Visible="false" />
                                                            <telerik:RadNumericTextBox ID="txtMinute" runat="server" Width="40px" CssClass="NumericTextBox" Visible="false"
                                                                AutoPostBack="True" OnTextChanged="txtMinute_TextChanged">
                                                            </telerik:RadNumericTextBox>
                                                            <asp:Label ID="lblMinute" runat="server" Text=" นาที" Visible="false" />
                                                        </td>
                                                        <td>=
                                                        </td>
                                                        <td width="110px" align="right">
                                                            <asp:Label ID="lblTotalAmount" runat="server" ForeColor="Blue" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="110px" align="right">
                                                            <asp:LinkButton ID="cmdAmountMax" runat="server" CssClass="LinkButton" OnClick="cmdAmountMax_Click"
                                                                ToolTip="คลิก เพื่อใช้จำนวนเงินตามอัตราสูงสุด">
                                                            </asp:LinkButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>
                            </asp:Panel>
                            <asp:Panel ID="PanelInv" runat="server">
                                <div style="padding: 5px 5px 10px 5px; border: 1px solid #999999;">
                                    <table>
                                        <tr>
                                            <td align="right" width="145px">ประเภทของพัสดุ :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblIcmResItemSeq" runat="server" Visible="false" />
                                                <asp:Label ID="lblIcmResItemCode" runat="server" ForeColor="Blue" />
                                                : 
                                                    <asp:Label ID="lblIcmResItemName" runat="server" ForeColor="Blue" />
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td align="right" width="145px">จำนวนหน่วย :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblUnitQtyProj" runat="server" ForeColor="Blue" />
                                                หน่วย
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td align="right" width="145px">จำนวนเงินต่อหน่วย :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblUnitPriceProj" runat="server" ForeColor="Blue" />
                                                บาท
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                            <div class="DivBody">
                                <table>
                                    <tr>
                                        <td align="right" width="150px">เงินที่เหลือในโครงการ :
                                        </td>
                                        <td align="right" width="158px">
                                            <asp:Label ID="lblProjOperRemainAmount" runat="server" ForeColor="Blue" />
                                        </td>
                                        <td>บาท
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="right" width="150px">เงินที่เหลือก่อนอนุมัติ :
                                        </td>
                                        <td align="right" width="158px">
                                            <asp:Label ID="lblProjOperRemainAmount2" runat="server" ForeColor="Blue" />
                                        </td>
                                        <td>บาท
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="right" width="150px">เงินที่เหลือของค่าใช้จ่าย :
                                        </td>
                                        <td align="right" width="158px">
                                            <asp:Label ID="lblRemainAmount" runat="server" ForeColor="Blue" />
                                        </td>
                                        <td>บาท
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr>
                                        <td align="right" width="150px">จำนวนเงินที่ขอ :
                                        </td>
                                        <td>
                                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" CssClass="NumericTextBox" AutoPostBack="true" OnTextChanged="txtAmount_TextChanged1">
                                            </telerik:RadNumericTextBox>
                                            บาท                                       
                                        </td>
                                    </tr>
                                </table>

                                <table>
                                    <tr>
                                        <td align="right" width="150px"></td>
                                        <td>
                                            <asp:CheckBox ID="chkIncludeVat" runat="server" Text="คิดภาษีมูลค่าเพิ่ม" AutoPostBack="true" OnCheckedChanged="chkIncludeVat_CheckedChanged"></asp:CheckBox>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="panelVat" runat="server" Visible="false">
                                    <fieldset>
                                        <legend>ข้อมูลภาษีมูลค่าเพิ่ม</legend>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">ผู้ออกใบกำกับภาษี :
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="ddlVender" runat="server" CausesValidation="false"
                                                        DataTextField="contact_name" DataValueField="contact_seq"
                                                        EmptyMessage="&lt; เลือกรายการ &gt;" Filter="Contains"
                                                        Width="350px">
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">สำนักงานใหญ่/สาขาที่ :
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox ID="txtBranchNo" runat="server" Width="100px">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px"></td>
                                                <td>
                                                    <b style="color: red">หากเป็นสำนักงานใหญ่ให้ใช้ "00000"<br />
                                                        หากเป็นสาขาให้ใส่เลขที่สาขาโดยอยู่ใน format 5 หลัก เช่น "00001", "00002"<br />
                                                        หากไม่ระบุสาขามาในใบกำกับภาษี ให้ใช้ "00000" แทน
                                                    </b>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">เลขที่ใบกำกับภาษี :
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox ID="txtDtlsRefNo" runat="server" Width="350px">
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">วันที่ออกใบกำกับภาษี :
                                                </td>
                                                <td>
                                                    <uc1:DatePicker ID="txtDtlsRefDate" runat="server" />
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">อัตราภาษีมูลค่าเพิ่ม
                                                </td>
                                                <td>
                                                    <telerik:RadNumericTextBox ID="txtPercentVat" runat="server" AutoPostBack="true"
                                                        MaxValue="100" MinValue="0" OnTextChanged="txtPercentVat_TextChanged">
                                                        <NumberFormat DecimalDigits="2" />
                                                    </telerik:RadNumericTextBox>
                                                </td>
                                                <td>%
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">จำนวนเงินภาษีมูลค่าเพิ่ม
                                                </td>
                                                <td>
                                                    <telerik:RadNumericTextBox ID="txtAmountVat" runat="server" AutoPostBack="true" OnTextChanged="txtAmountVat_TextChanged">
                                                        <NumberFormat DecimalDigits="2" GroupSeparator="," />
                                                    </telerik:RadNumericTextBox>
                                                </td>
                                                <td>บาท
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">จำนวนเงินไม่รวมภาษีมูลค่าเพิ่ม
                                                </td>
                                                <td align="right" width="158px">
                                                    <asp:Label ID="lblExcludeVat" runat="server" ForeColor="Blue" />
                                                </td>
                                                <td>บาท
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </asp:Panel>
                                <table>
                                    <tr>
                                        <td align="right" width="150px"></td>
                                        <td>
                                            <asp:CheckBox ID="chkIncludeTax" runat="server" Text="คิดภาษีหัก ณ ที่จ่าย" AutoPostBack="true" OnCheckedChanged="chkIncludeTax_CheckedChanged"></asp:CheckBox>
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="panelTax" runat="server" Visible="false">
                                    <fieldset>
                                        <legend>ข้อมูลภาษีหัก ณ ที่จ่าย</legend>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">อัตราภาษีหัก ณ ที่จ่าย
                                                </td>
                                                <td>
                                                    <telerik:RadNumericTextBox ID="txtPercentTax" runat="server" AutoPostBack="true"
                                                        MaxValue="100" MinValue="0" OnTextChanged="txtPercentTax_TextChanged">
                                                        <NumberFormat DecimalDigits="2" />
                                                    </telerik:RadNumericTextBox>
                                                </td>
                                                <td>%
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td align="right" width="150px">จำนวนเงินภาษีหัก ณ ที่จ่าย
                                                </td>
                                                <td>
                                                    <telerik:RadNumericTextBox ID="txtAmountTax" runat="server">
                                                        <NumberFormat DecimalDigits="2" GroupSeparator="," />
                                                    </telerik:RadNumericTextBox>
                                                </td>
                                                <td>บาท
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </asp:Panel>
                                <asp:Panel ID="panelTotalAmount" runat="server">
                                    <table>
                                        <tr>
                                            <td align="right" width="150px">จำนวนเงินสุทธิ
                                            </td>
                                            <td align="right" width="158px">
                                                <asp:Label ID="lblTotalAmount" runat="server" ForeColor="Blue" />
                                            </td>
                                            <td>บาท
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <table>
                                    <tr>
                                        <td align="right" width="150px" valign="top" style="padding-top: 5px">รายละเอียด :
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="txtRemarks" runat="server"
                                                Width="350px" Height="100px" TextMode="MultiLine">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="DivInfo">
                                <table width="100%">
                                    <tr>
                                        <td align="center">
                                            <asp:LinkButton ID="cmdInsert2" runat="server" CssClass="LinkButton" OnClick="cmdInsert2_Click">
                                                <img alt="" id="img6" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" />
                                                &nbsp;บันทึกข้อมูล
                                            </asp:LinkButton>
                                            <asp:Label runat="server" ID="lblInsertUid" Visible="False"></asp:Label>
                                            <asp:LinkButton ID="cmdUpdate2" runat="server" CssClass="LinkButton" OnClick="cmdUpdate2_Click">
                                                <img alt="" id="img3" runat="server" height="14" src="~/App_UI/Images/Buttons/saveDisk.gif" />
                                                &nbsp;บันทึกข้อมูล
                                            </asp:LinkButton>&nbsp;
                                            <asp:LinkButton ID="cmdCancel2" runat="server" CssClass="LinkButton" OnClick="cmdCancel2_Click">
                                                <img alt="" id="img5" runat="server" height="14" src="~/App_UI/Images/Buttons/Cancel.gif" />
                                                &nbsp;ยกเลิกการแก้ไข
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </asp:Panel>
                    <asp:Panel ID="PanelProgress3" runat="server">
                        <div class="DivInfo">
                            <table>
                                <tr>
                                    <td>ค่าใช้จ่ายของรายการ
                                    </td>
                                    <td>
                                        <asp:Label ID="lblMoneyReqName2" runat="server" ForeColor="Blue" />
                                        <asp:Label ID="lblTravelerSeq" runat="server" Visible="false" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="DivBody">
                            <ul class="RepeaterList">
                                <asp:Repeater ID="RepeaterPerson" runat="server"
                                    OnItemCommand="RepeaterPerson_ItemCommand">
                                    <HeaderTemplate>
                                        <li class="Header">
                                            <table>
                                                <tr>
                                                    <td align="left" width="200px" style="font-weight: bold">ชื่อผู้เดินทาง</td>
                                                    <td align="left" width="200px" style="font-weight: bold">สังกัด</td>
                                                    <td align="left" width="200px" style="font-weight: bold">ตำแหน่ง</td>
                                                    <td align="left" width="200px" style="font-weight: bold">ระดับ</td>
                                                </tr>
                                            </table>
                                        </li>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <li class="Item">
                                            <table>
                                                <tr>
                                                    <td align="left" width="200px">
                                                        <asp:LinkButton ID="cmdRepeaterEdit" runat="server" CommandName="edit" Text='<%# Eval("traveler_name")%>'></asp:LinkButton>
                                                        <asp:Label ID="lblTravelSeq" runat="server" Text='<%# Eval("traveler_seq")%>' Visible="false" />
                                                        <asp:Label ID="lblRepeaterEmpSeq" runat="server" Text='<%# Eval("emp_seq")%>' Visible="false" />
                                                    </td>
                                                    <td align="left" width="200px"><%# Eval("job_site_name")%></td>
                                                    <td align="left" width="200px"><%# Eval("pos_name")%></td>
                                                    <td align="left" width="200px"><%# Eval("class_name")%></td>
                                                </tr>
                                            </table>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                        <div class="DivBody">
                            <table>
                                <tr>
                                    <td width="150px" align="right">ผู้เดินทาง :
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="ddlEmpSeq" runat="server"
                                            Filter="Contains" Style="z-index: 9900;"
                                            Visible="true" AutoPostBack="true"
                                            Height="190px" Width="600px"
                                            MarkFirstMatch="true" EnableLoadOnDemand="true"
                                            HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
                                            OnDataBound="ddlEmpSeq_DataBound" OnItemDataBound="ddlApprover_ItemDataBound"
                                            OnItemsRequested="ddlEmpSeq_ItemsRequested"
                                            OnSelectedIndexChanged="ddlEmpSeq_SelectedIndexChanged">
                                            <HeaderTemplate>
                                                <table width="100%">
                                                    <tr>
                                                        <td align="center">ชื่อ-สกุล</td>
                                                        <td align="center" width="150px">ตำแหน่ง</td>
                                                        <td align="center" width="100px">ระดับ</td>
                                                        <td align="center" width="150px">สังกัด</td>
                                                    </tr>
                                                </table>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <table width="100%">
                                                    <tr>
                                                        <td><%# DataBinder.Eval(Container.DataItem, "full_name") %></td>
                                                        <td width="150px"><%# DataBinder.Eval(Container.DataItem, "exec_pos_name")%></td>
                                                        <td width="100px"><%# DataBinder.Eval(Container.DataItem, "className") %></td>
                                                        <td width="150px"><%# DataBinder.Eval(Container.DataItem, "JobsiteName") %></td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                ทั้งหมด
                                                <asp:Literal runat="server" ID="RadComboItemsCount" />
                                                รายการ
                                            </FooterTemplate>
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td width="150px" align="right">ตำแหน่ง :
                                    </td>
                                    <td>
                                        <asp:Label ID="lblPosName" runat="server" ForeColor="Blue" />
                                        <asp:Label ID="lblPosSeq" runat="server" Visible="false" />
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td width="150px" align="right">ระดับ :
                                    </td>
                                    <td>
                                        <asp:Label ID="lblClassName" runat="server" ForeColor="Blue" />
                                        <asp:Label ID="lblClassSeq" runat="server" Visible="false" />
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td width="150px" align="right">สังกัด :
                                    </td>
                                    <td>
                                        <asp:Label ID="lblJobsiteName" runat="server" ForeColor="Blue" />
                                        <asp:Label ID="lblJobsiteSeq" runat="server" Visible="false" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </asp:Panel>
                    <asp:Panel ID="PanelSummary" runat="server">
                        <asp:Panel ID="PanelMessageSend" runat="server" Visible="false">
                            <div class="DivBody">
                                <asp:Panel ID="PanelSendTo" runat="server">
                                    <table width="100%">
                                        <tr>
                                            <td width="130px" align="right">ชื่อผู้อนุมัติ :
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblApproveEmpSeq" runat="server" Visible="false" />
                                                <asp:Label ID="lblApprovePosSeq" runat="server" Visible="false" />
                                                <asp:Label ID="lblApprovePathSeq" runat="server" Visible="false" />
                                                <telerik:RadComboBox ID="ddlApprover" runat="server"
                                                    Filter="Contains" Style="z-index: 9900;"
                                                    Visible="true" AutoPostBack="true"
                                                    Height="190px" Width="600px"
                                                    MarkFirstMatch="true" EnableLoadOnDemand="true"
                                                    HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
                                                    OnDataBound="ddlApprover_DataBound" OnItemDataBound="ddlApprover_ItemDataBound"
                                                    OnItemsRequested="ddlApprover_ItemsRequested"
                                                    OnSelectedIndexChanged="ddlApprover_SelectedIndexChanged">
                                                    <HeaderTemplate>
                                                        <table width="100%">
                                                            <tr>
                                                                <td align="center">ชื่อ-สกุล</td>
                                                                <td align="center" width="150px">ตำแหน่ง</td>
                                                                <td align="center" width="100px">ระดับ</td>
                                                                <td align="center" width="150px">สังกัด</td>
                                                            </tr>
                                                        </table>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <table width="100%">
                                                            <tr>
                                                                <td><%# DataBinder.Eval(Container.DataItem, "full_name") %></td>
                                                                <td width="150px"><%# DataBinder.Eval(Container.DataItem, "exec_pos_name")%></td>
                                                                <td width="100px"><%# DataBinder.Eval(Container.DataItem, "className") %></td>
                                                                <td width="150px"><%# DataBinder.Eval(Container.DataItem, "JobsiteName") %></td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        ทั้งหมด
                                                    <asp:Literal runat="server" ID="RadComboItemsCount" />
                                                        รายการ
                                                    </FooterTemplate>
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td width="130px" align="right">ตำแหน่ง :
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblAppPosName" runat="server" ForeColor="Brown" Visible="true" />
                                            </td>
                                            <td width="100px" align="right">ระดับ :
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblAppClassName" runat="server" ForeColor="Brown" Visible="true" />
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td width="130px" align="right">ตำแหน่งบริหาร :
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblAppExecPosName" runat="server" ForeColor="Brown" Visible="true" />
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td width="130px" align="right">หน่วยงาน :
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblAppJobsiteName" runat="server" ForeColor="Brown" Visible="true" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="PanelSendTo2" runat="server" Visible="false">
                                    ส่งต่อให้
                                    <asp:Label ID="lblPosGrpName" runat="server" ForeColor="Red"></asp:Label>
                                    <asp:Label ID="lblPosGrpSeq" runat="server" Visible="false"></asp:Label>
                                    <asp:Repeater ID="rptPosGrpDtls" runat="server">
                                        <ItemTemplate>
                                            <div style="border-bottom-style: dotted; border-width: 1px; border-color: #999999;">
                                                <table>
                                                    <tr valign="top">
                                                        <td width="300px">
                                                            <%# Eval("emp_name")%>
                                                        </td>
                                                        <td width="300px">
                                                            <%# Eval("pos_name")%>
                                                        </td>
                                                        <td>
                                                            <%# Eval("job_site_name")%>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </asp:Panel>
                                <br />
                                <table width="100%" style="border-top-style: solid; border-width: 1px; border-color: #999999">
                                    <tr>
                                        <td align="center">
                                            <asp:LinkButton ID="cmdSave" runat="server"
                                                Text="บันทึก" CssClass="LinkButton"
                                                OnClientClick="javascript: return confirm('ต้องการส่งขออนุมัติหรือไม่?');"
                                                OnClick="cmdSave_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>

                        <div class="DivInfo">
                            <table width="100%">
                                <tr>
                                    <td class="FinHeader">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>ข้อมูลรายการเบิก/ยืมเงิน [
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblFinRefNo" runat="server" />]
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td align="right" class="FinHeader">
                                        <asp:Label ID="lblFinRecordStatusName" runat="server" />
                                        <asp:Label ID="lblFinRecordStatus" runat="server" Visible="false" />
                                    </td>
                                </tr>
                            </table>
                            <table id="tableSendBackRemark" runat="server">
                                <tr>
                                    <td>หมายเหตุในการตีกลับ
                                    </td>
                                    <td>
                                        <asp:Label ID="lblSendBackRemark" runat="server" ForeColor="Red" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="DivBody">
                            <div class="DivBody">
                                <table>
                                    <tr valign="top">
                                        <td width="130px">ปีงบประมาณ :
                                        </td>
                                        <td>
                                            <asp:Label ID="lblFinBgmYear" runat="server" ForeColor="Blue" />
                                        </td>
                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;วันที่ทำรายการ :
                                        </td>
                                        <td>
                                            <asp:Label ID="lblFinMoneyReqDate" runat="server" ForeColor="Blue" />
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr valign="top">
                                        <td width="130px">แหล่งเงิน :
                                        </td>
                                        <td>
                                            <asp:Label ID="lblFinBgmSourceName" runat="server" ForeColor="Blue" />
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr valign="top">
                                        <td width="130px">งบรายจ่าย :
                                        </td>
                                        <td>
                                            <asp:Label ID="lblFinBgmExpGrpName" runat="server" ForeColor="Blue" />
                                        </td>
                                    </tr>
                                </table>
                                <table>
                                    <tr valign="top">
                                        <td width="130px">ชื่อรายการ :
                                        </td>
                                        <td colspan="3">
                                            <asp:Label ID="lblFinMoneyReqName" runat="server" ForeColor="Blue" />
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="PanelFinBorrow" runat="server" Visible="false">
                                    <table>
                                        <tr valign="top">
                                            <td width="130px">วัตถุประสงค์ในการยืม :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblFinBorrowTypeName" runat="server" ForeColor="Blue" />
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr valign="top">
                                            <td width="130px">วันที่เริ่ม :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblFinBorrowStartDate" runat="server" ForeColor="Blue" />
                                            </td>
                                            <td width="20px"></td>
                                            <td>วันที่สิ้นสุด :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblFinBorrowEndDate" runat="server" ForeColor="Blue" />
                                            </td>
                                            <td width="20px"></td>
                                            <td>วันที่ครบกำหนดชดใช้เงินยืม :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblFinBorrowReturnDate" runat="server" ForeColor="Blue" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="PanelFinDocRefNo" runat="server" Visible="false">
                                    <table>
                                        <tr valign="top">
                                            <td width="130px">เลขที่ใบสำคัญ :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblFinDocRefNo" runat="server" ForeColor="Blue" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="PanelContactShow" runat="server" Visible="false">
                                    <table>
                                        <tr valign="top">
                                            <td width="130px">ผู้ที่ขอ :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblContactShow" runat="server" ForeColor="Blue" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </div>
                        </div>
                        <div class="DivInfo">
                            <span class="FinHeader">ข้อมูลค่าใช้จ่ายในโครงการ</span>
                        </div>
                        <div class="DivBody">
                            <div class="DivBody">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>&nbsp;
                                        </td>
                                        <td width="100px" align="right">Vat
                                        </td>
                                        <td width="100px" align="right">WH Tax
                                        </td>
                                        <td width="100px" align="right">จำนวนเงิน
                                        </td>
                                    </tr>
                                </table>
                                <asp:Repeater ID="RepeaterBgmExp2" runat="server">
                                    <HeaderTemplate>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <table width="100%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                            <tr valign="top">
                                                <td style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #E7EBF1;">หมวดค่าใช้จ่าย : <%# Eval("bgm_exp_name")%>
                                                </td>
                                                <td width="100px" align="right" style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #E7EBF1;">
                                                    <%# Eval("amount_vat", "{0:n2}")%>
                                                </td>
                                                <td width="100px" align="right" style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #E7EBF1;">
                                                    <%# Eval("amount_tax", "{0:n2}")%>
                                                </td>
                                                <td width="100px" align="right" style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #E7EBF1;">
                                                    <%# Eval("amount", "{0:n2}")%>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" cellpadding="0" cellspacing="0">
                                            <tr valign="top">
                                                <td width="20px" style="background-color: #E7EBF1;">
                                                    <asp:Label ID="lblBgmExpSeq" runat="server" Visible="false" Text='<%# Eval("bgm_exp_seq")%>' />
                                                </td>
                                                <td colspan="2">
                                                    <asp:Repeater ID="RepeaterBgmExp1" runat="server">
                                                        <HeaderTemplate>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <table width="100%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                <tr valign="top">
                                                                    <td style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #EEF1F7;">รายการค่าใช้จ่าย : <%# Eval("bgm_exp_name")%>
                                                                    </td>
                                                                    <td width="100px" align="right" style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #EEF1F7;">
                                                                        <%# Eval("amount_vat", "{0:n2}")%>
                                                                    </td>
                                                                    <td width="100px" align="right" style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #EEF1F7;">
                                                                        <%# Eval("amount_tax", "{0:n2}")%>
                                                                    </td>
                                                                    <td width="100px" align="right" style="color: #0000FF; padding-top: 3px; padding-bottom: 3px; background-color: #EEF1F7;">
                                                                        <%# Eval("amount", "{0:n2}")%>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                            <table width="100%" cellpadding="0" cellspacing="0">
                                                                <tr valign="top">
                                                                    <td width="20px" style="background-color: #EEF1F7;">
                                                                        <asp:Label ID="lblBgmExpSeq" runat="server" Visible="false" Text='<%# Eval("bgm_exp_seq")%>' />
                                                                    </td>
                                                                    <td colspan="2">
                                                                        <asp:Repeater ID="RepeaterBgmExp" runat="server">
                                                                            <HeaderTemplate>
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <table width="100%" cellpadding="0" cellspacing="0" class="tableNoSpacingNoPadding">
                                                                                    <tr valign="top">
                                                                                        <td style="padding-top: 3px; padding-bottom: 3px;">ค่าใช้จ่าย : <%# Eval("bgm_exp_name")%>
                                                                                        </td>
                                                                                        <td style="padding-top: 3px; padding-bottom: 3px;">
                                                                                            <%# Eval("remarks")%>
                                                                                        </td>
                                                                                        <td width="100px" align="right" style="padding-top: 3px; padding-bottom: 3px;">
                                                                                            <%# Eval("amount_vat", "{0:n2}")%>
                                                                                        </td>
                                                                                        <td width="100px" align="right" style="padding-top: 3px; padding-bottom: 3px;">
                                                                                            <%# Eval("amount_tax", "{0:n2}")%>
                                                                                        </td>
                                                                                        <td width="100px" align="right" style="padding-top: 3px; padding-bottom: 3px;">
                                                                                            <%# Eval("amount", "{0:n2}")%>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </ItemTemplate>
                                                                        </asp:Repeater>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="right" style="padding-top: 3px; padding-bottom: 3px;">รวม : 
                                        </td>
                                        <td align="right" width="100px" style="border-width: 1px; padding-top: 3px; padding-bottom: 3px; border-top-style: solid;">
                                            <asp:Label ID="lblFinSumAmountVat" runat="server" ForeColor="Blue" />
                                        </td>
                                        <td align="right" width="100px" style="border-width: 1px; padding-top: 3px; padding-bottom: 3px; border-top-style: solid;">
                                            <asp:Label ID="lblFinSumAmountTax" runat="server" ForeColor="Blue" />
                                        </td>
                                        <td align="right" width="100px" style="border-width: 1px; padding-top: 3px; padding-bottom: 3px; border-top-style: solid;">
                                            <asp:Label ID="lblFinSumAmount" runat="server" ForeColor="Blue" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <asp:Panel ID="panelFinTraveler" runat="server">
                            <div class="DivInfo">
                                <span class="FinHeader">ข้อมูลผู้เดินทาง</span>
                            </div>
                            <div class="DivBody">
                                <ul class="RepeaterList">
                                    <asp:Repeater ID="Repeater3" runat="server">
                                        <HeaderTemplate>
                                            <li class="Header">
                                                <table>
                                                    <tr>
                                                        <td align="left" width="200px" style="font-weight: bold">ชื่อผู้เดินทาง</td>
                                                        <td align="left" width="200px" style="font-weight: bold">สังกัด</td>
                                                        <td align="left" width="200px" style="font-weight: bold">ตำแหน่ง</td>
                                                        <td align="left" width="200px" style="font-weight: bold">ระดับ</td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <li class="Item">
                                                <table>
                                                    <tr>
                                                        <td align="left" width="200px"><%# Eval("traveler_name")%></td>
                                                        <td align="left" width="200px"><%# Eval("job_site_name")%></td>
                                                        <td align="left" width="200px"><%# Eval("pos_name")%></td>
                                                        <td align="left" width="200px"><%# Eval("class_name")%></td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ul>
                            </div>
                        </asp:Panel>
                    </asp:Panel>
                    <asp:Panel ID="PanelViewAll" runat="server">
                        <div class="DivInfo">
                            <table>
                                <tr>
                                    <td width="100px" align="right">ปีงบประมาณ :
                                    </td>
                                    <td width="100px">
                                        <telerik:RadNumericTextBox ID="txtFilterBgmYear" runat="server"
                                            Width="100px" ShowSpinButtons="True" AutoPostBack="true"
                                            NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator=""
                                            OnTextChanged="txtFilterBgmYear_TextChanged" />
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td align="center">
                                        <asp:RadioButtonList ID="rblFilterEventSeq" runat="server"
                                            RepeatDirection="Horizontal" AutoPostBack="true"
                                            OnSelectedIndexChanged="rblFilterEventSeq_SelectedIndexChanged">
                                            <asp:ListItem Text="ขอยืมเงิน" Value="16" Selected="True">
                                            </asp:ListItem>
                                            <%--<asp:ListItem Text="ขอยืมเงินบัตรเครดิต" Value="18">
                                            </asp:ListItem>--%>
                                            <asp:ListItem Text="ขอเบิกเงิน" Value="12">
                                            </asp:ListItem>
                                            <%--<asp:ListItem Text="ขอเบิกเงินสวัสดิการ" Value="17">
                                            </asp:ListItem>
                                            <asp:ListItem Text="โอนเงินไปสำนักงานต่างประเทศ" Value="19">
                                            </asp:ListItem>--%>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <%-- Prevent to fix height by session because session is not stable
                             Height='<%# Unit.Pixel(KPIS.GERP.ESS.APP.App_UI.Forms.SsMng.HeightI - 280) %>' --%>
                        <telerik:RadGrid GroupingSettings-CaseSensitive="false" ID="GrdViewAll" runat="server"
                            AutoGenerateColumns="false" AllowMultiRowEdit="false"
                            AllowMultiRowSelection="false"
                            ShowStatusBar="false" AllowPaging="true"
                            AllowSorting="true" AllowFilteringByColumn="true"
                            Width="846px"
                            GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                            GroupingSettings-GroupContinuedFormatString=""
                            GroupingSettings-GroupContinuesFormatString=""
                            GroupingSettings-GroupSplitFormat=""
                            OnItemDataBound="GrdViewAll_ItemDataBound"
                            OnItemCommand="GrdViewAll_ItemCommand">
                            <MasterTableView AllowMultiColumnSorting="true" CellSpacing="-1" Width="100%"
                                DataKeyNames="money_req_seq" NoMasterRecordsText="< ไม่มีข้อมูล >">
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn>
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="money_req_seq"
                                        UniqueName="money_req_seq" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="record_status"
                                        UniqueName="record_status" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="money_req_date" HeaderText="วันที่ทำรายการ"
                                        UniqueName="money_req_date" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False" DataFormatString="{0:d}">
                                        <HeaderStyle Width="100px" HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ref_no" HeaderText="รหัสรายการ"
                                        UniqueName="ref_no" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                        <HeaderStyle Width="100px" HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>
                                    <%--<telerik:GridBoundColumn DataField="money_req_name" HeaderText="ชื่อรายการ"
                                        UniqueName="money_req_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                        <ItemStyle HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>--%>
                                    <telerik:GridTemplateColumn DataField="money_req_name" HeaderText="ชื่อรายการ"
                                        UniqueName="money_req_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                        <ItemTemplate>
                                            <%# DataBinder.Eval(Container.DataItem, "money_req_name") %>
                                            <%# string.IsNullOrEmpty(Convert.ToString(DataBinder.Eval(Container.DataItem, "contact_name"))) ? string.Empty : " (" +  Convert.ToString(DataBinder.Eval(Container.DataItem, "contact_name"))  + ")"%>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="total_amount" HeaderText="จำนวนเงิน(บาท)"
                                        UniqueName="total_amount" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False" DataFormatString="{0:n2}"
                                        AllowFiltering="false">
                                        <HeaderStyle Width="120px" HorizontalAlign="Right" />
                                        <ItemStyle HorizontalAlign="Right" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="record_status_name" HeaderText="สถานะรายการ"
                                        UniqueName="record_status_name" FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                        CurrentFilterFunction="Contains" ShowFilterIcon="False">
                                        <HeaderStyle Width="100px" HorizontalAlign="Left" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <PagerStyle Mode="NumericPages" AlwaysVisible="true"
                                    FirstPageToolTip="กลับหน้าแรก" LastPageToolTip="ไปหน้าสุดท้าย"
                                    NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป"
                                    PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                            </MasterTableView>
                            <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                GroupContinuedFormatString="" GroupContinuesFormatString=""
                                GroupSplitFormat="" />
                            <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
                                <Selecting AllowRowSelect="true" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
                        </telerik:RadGrid>
                    </asp:Panel>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <telerik:RadWindowManager ID="RadWindowManager1" VisibleStatusbar="false" ReloadOnShow="true"
        runat="server" Skin="Vista">
        <Windows>
            <telerik:RadWindow Title="รายงาน"
                runat="server" ID="RadWindowReport"
                AutoSize="true" ReloadOnShow="True">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

</asp:Content>


